<%@ Page Title="Edit or Create Job" Language="C#" MasterPageFile="~/Views/Shared/Employee.Master" Inherits="System.Web.Mvc.ViewPage<DomainModel.Entities.Job>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Edit or Create Job
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

<% using (Html.BeginForm("Edit", "JobsManagement"))
{ %>

<h2>Edit or Create Job</h2>

<%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

<fieldset class="staffingexpert">
    
<legend class="staffingexpert">Job</legend>

    <%= Html.Hidden("JobID")%>

    
        <p>
            <label class="staffingexpert" for="JobTitle">Job Title:</label>
            <br/><%= Html.TextBox("JobTitle", null, new { @class = "staffingexperttextbox", @style="width: 610px;" })%>
            <%=Html.ValidationMessage("JobTitle", "*")%>
        </p>
           
    
        <p>
            <label class="staffingexpert" for="JobDescription">Job Description:</label>
            <br/><%= Html.TextArea("JobDescription", null, new { @class = "staffingexpert", @style = "width: 610px; height: 100px" })%>
            <%=Html.ValidationMessage("JobDescription", "*")%>
        </p>
    
        <p>
            <label class="staffingexpert" for="Salary">Salary:</label>
            <br/><%= Html.TextBox("Salary", null, new { @class = "staffingexperttextbox", @style = "width: 100px;" })%>
            <%=Html.ValidationMessage("Salary", "*")%>
        </p>       
    
        <p>
            <input class="staffingexpert" type="submit" value="Save"/>
            | <%= Html.ActionLink("Cancel", "Index")%>
        </p>

</fieldset>

<% } %>

</asp:Content>
